package drexel.routes;

import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.spring.Main;

public class FileLoadingRoute extends RouteBuilder {

    public static void main (String... args) throws Exception {
    	
        Main.main (args);
    }

    public void configure () throws Exception {
    	
        from ("file:inbox?move=.done&exclude=movies.dtd&delay=10000&maxMessagesPerPoll=500")
        	.routeId ("loading")
	    	// .unmarshal(jaxbReq)
	    	// .transform().simple("${body.movie}")
	    	.beanRef ("DBAccessService", "loadMovie")
        .end ();
    }
}
